<?php
class UIController extends BaseController 
{
	protected function main()
    {
        $model = new DictsModel();
        $modeldata['user_dicts'] = $model->fetchUserDicts();
    	$this->ReturnView($modeldata);
    }
    
    protected function dicts()
    {
    	require_once('authorization.php');
    	$model = new DictsModel();
    	$modeldata['dicts'] = $model->fetchAllDicts();
    	$this->ReturnView($modeldata);
    }
	
	protected function about()
    {
        $this->ReturnView(null);
    }    

    protected function show()
    {
    	$this->returnView(null);
    }    

    protected function manage()
    {
    	require_once('authorization.php');
    	$this->returnView(null);
    }    

    protected function login()
    {
    	$model = new UIModel();
    	$modeldata = $model->login();
    	$this->returnView($modeldata);
    } 
}